package com.example.jt_manager_service;

import com.example.jt_common.vo.ItemParams;
import com.example.jt_manager_pojo.Item;
import com.example.jt_manager_pojo.ItemCat;
import com.example.jt_manager_pojo.ItemDesc;
import com.example.jt_manager_pojo.ItemParam;
import com.github.pagehelper.PageInfo;

import java.math.BigInteger;
import java.util.List;

public interface ItemService {

    //    item_cate
    public List<ItemCat> queryGoodsCategory(long id);

    //    item
    public void addGood(Item item,String desc);
    public void updateGood(Item item,String desc);
    public int deleteGoods(List<Long> ids);
    public PageInfo<Item> queryGoodsByPage(int currentPage, int pageSize);
    public int itemInstock(List<Long> ids);
    public int itemReshelf(List<Long> ids);
    public Item queryItemByID(long id);

    //    item_desc
    public void addGoodsDesc(long id,String desc);
    public void updateGoodsDesc(long id,String desc);
    public ItemDesc queryItemDescById(long id);


    //    item_param
    public PageInfo<ItemParam> queryItemParamByPage(int page,int size);
    public int deleteParamByIds(List<Long> ids);
    public int isExistParamById(long id);
    public int insertParam(ItemParam itemParam);
    public List<ItemParams> queryParamById(long id);

}
